package com.tempjob.common.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author hui
 * @Date 2024/12/2 16:45
 **/
@Data
@ApiModel("全职工作差异信息")
public class FullTimeJob {

    @ApiModelProperty("正式工工资范围下限")
    private Integer salaryMin;

    @ApiModelProperty("正式工工资范围上限")
    private Integer salaryMax;

    @ApiModelProperty("招聘人数")
    private Integer hireTotal;

    @ApiModelProperty("已招聘人数")
    private Integer hiredNum;

    @ApiModelProperty("薪资说明")
    private String salaryDesc;

    public String getSalaryDesc() {
        return salaryMin + "-" + salaryMax + "元/月";
    }

    public Integer getHiredNum() {
        if (hiredNum == null) {
            hiredNum = 0;
        }
        return hiredNum;
    }
}
